package com.zklh.leetcode.other.problem1;

/**
 * @ClassName ListNode
 * @Description
 * @Author 坐看落花
 * @Date 2019/7/18 20:59
 * @Version 1.0
 **/
public class ListNode {
    public int val;
    public ListNode next;
    public ListNode (int x){
        val = x;
    }

    @Override
    public String toString() {
        return val + (next != null ? "->"  + next : "") ;
    }
}

